package org.howie.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class LogController {

    private static final Logger logger1 = LoggerFactory.getLogger("demo1");
    private static final Logger logger2 = LoggerFactory.getLogger("demo2");
    private static final Logger logger3 = LoggerFactory.getLogger("demo3");

    private static final Logger ALARM = LoggerFactory.getLogger("ALARM");

    @RequestMapping("/logaaa")
    public String log(){

        ALARM.info("alarm xxxx {}", "yyyyyy");
        return "SUCCESS";
    }



}
